@@ -11,7 +11,6 @@ import {
11
11
} from "../../functions/getPlan" ;
12
12
import {
13
13
isUsingFirefox ,
14
- supportsChromeExtension ,
15
14
supportsFirefoxExtension ,
16
15
} from "../../functions/userAgent" ;
17
16
import { ProfileData } from "../../hooks/api/profile" ;
@@ -81,7 +80,7 @@ export const ProfileBanners = (props: Props) => {
81
80
82
81
// Don't show the "Get Firefox" banner if we have an extension available,
83
82
// to avoid banner overload:
84
- if ( ! isUsingFirefox ( ) && ( ! supportsChromeExtension ( ) || ! isLargeScreen ) ) {
83
+ if ( ! isUsingFirefox ( ) || ! isLargeScreen ) {
85
84
banners . push ( < NoFirefoxBanner key = "firefox-banner" /> ) ;
86
85
}
87
86
@@ -100,18 +99,6 @@ export const ProfileBanners = (props: Props) => {
100
99
) ;
101
100
}
102
101
103
- if ( supportsChromeExtension ( ) && isLargeScreen ) {
104
- // This pushes a banner promoting the add-on - detecting the add-on
105
- // and determining whether to show it based on that is a bit slow,
106
- // so we'll just let the add-on hide it:
107
- banners . push (
108
- < NoChromeExtensionBanner
109
- profileData = { props . profile }
110
- key = "chrome-extension-banner"
111
- /> ,
112
- ) ;
113
- }
114
-
115
102
return < div className = { styles [ "profile-banners" ] } > { banners } </ div > ;
116
103
} ;
117
104
@@ -214,51 +201,6 @@ const NoAddonBanner = (props: NoAddonBannerProps) => {
214
201
) ;
215
202
} ;
216
203
217
- type NoChromeExtensionBannerProps = {
218
- profileData : ProfileData ;
219
- } ;
220
-
221
- // make dismissble
222
- const NoChromeExtensionBanner = ( props : NoChromeExtensionBannerProps ) => {
223
- const l10n = useL10n ( ) ;
224
- const gaEvent = useGaEvent ( ) ;
225
-
226
- return (
227
- < Banner
228
- type = "promo"
229
- title = { l10n . getString (
230
- "banner-download-install-chrome-extension-headline" ,
231
- ) }
232
- illustration = { {
233
- img : < Image src = { AddonIllustration } alt = "" width = { 60 } height = { 60 } /> ,
234
- } }
235
- cta = { {
236
- target :
237
- "https://chrome.google.com/webstore/detail/firefox-relay/lknpoadjjkjcmjhbjpcljdednccbldeb?utm_source=fx-relay&utm_medium=banner&utm_campaign=install-addon" ,
238
- content : l10n . getString ( "banner-download-install-chrome-extension-cta" ) ,
239
- size : "large" ,
240
- gaViewPing : {
241
- category : "Download Extension" ,
242
- label : "profile-banner-download-chrome-extension" ,
243
- } ,
244
- onClick : ( ) => {
245
- gaEvent ( {
246
- category : "Download Firefox" ,
247
- action : "Engage" ,
248
- label : "profile-banner-download-chrome-extension" ,
249
- } ) ;
250
- } ,
251
- } }
252
- hiddenWithAddon = { true }
253
- dismissal = { {
254
- key : `no-chrome-extension-banner-${ props . profileData . id } ` ,
255
- } }
256
- >
257
- < p > { l10n . getString ( "banner-download-install-chrome-extension-copy-2" ) } </ p >
258
- </ Banner >
259
- ) ;
260
- } ;
261
-
262
204
type BundleBannerProps = {
263
205
runtimeData : RuntimeDataWithBundleAvailable ;
264
206
profileData : ProfileData ;
0 commit comments